package stud.mpgame.flash.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.flash.test.TestSnapshot;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class TestSnapshotDescription extends MessageDescription {

	private static var ID:Int = IDescriptionManager.TEST_SNAPSHOT_DESCRIPTION;

    private static var TEST_SNAPSHOT_USER_OBJECT_ID:Int = 1; //TestSnapshot.hx

	private static var instance:TestSnapshotDescription = null;
	
    public override function getID():Int {
        return ID;
    }
	
	public function new() {
		super();
		this.registerUserObject(TEST_SNAPSHOT_USER_OBJECT_ID, TestSnapshot);
	}

    public static function getInstance():TestSnapshotDescription {
        if(instance == null){
            instance = new TestSnapshotDescription();
        }
        return instance;
    }
	
}